﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dream
{
    class Stundent
    {
        public  string StuName { get; set; }
        public static string TherName;
        private string v;

        public Stundent(string v)
        {
            this.v = v;
        }

        public void Name(string StuName)
        {

           this.StuName = StuName;
     
        }
        public void Warning() 
        {
            Console.WriteLine("大家好，我叫{0}，我的老师是{1}", this.v, TherName);
        }
    }
}
